public class Main {
    public static void main(String[] args) {
        while (true) {
            try {
                Thread.sleep(1000);
                Api rand = new Api();
                System.out.println(rand.getNum());
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

}
